package appinfo.mapper;

import appinfo.pojo.AppInfo;
import appinfo.pojo.vo.AppSearchVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AppInfoMapper {
    List<AppInfo> findAppInfo(AppSearchVo vo);

    Integer findCount(AppSearchVo vo);

    AppInfo findApp(Integer aid);

    int update(@Param("id") Integer aid, @Param("status") Integer astatus);


    AppInfo getAppById(Integer id);

    int delVersion(Integer id);

    int delApp(Integer id);

    AppInfo findAppViewById(@Param("id") Integer id);

    int appInfoAdd(AppInfo appInfo);

    int selectAPKName(String apkName);

    int onAndOff(@Param("appId") Integer appId, @Param("statusapp") Integer statusapp);

    int delFile(Integer id);

    int updateApp(AppInfo appInfo);
}
